/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/controls/VuMeter2.h,v 1.3 2003/11/21 12:39:24 itsme Exp $
 *
 *
 */


#if !defined(AFX_VUMETER2_H__75A95547_47E2_4EDD_88DD_FCD2E86C2390__INCLUDED_)
#define AFX_VUMETER2_H__75A95547_47E2_4EDD_88DD_FCD2E86C2390__INCLUDED_

#include <vector>
#include "vectorutils.h"

class CVuMeter2 : public CStatic {
public:
    virtual ~CVuMeter2();

    BOOL Create(const RECT& position, CWnd* parent, int min, int max, const IntVector& rscList);
    void SetRange(int min, int max);
    void SetLevel(int level);

    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CVuMeter)
public:
    //}}AFX_VIRTUAL

protected:
    //{{AFX_MSG(CVuMeter)
    //}}AFX_MSG
private:
    int m_min;
    int m_max;
    int m_level;
    int m_currentbitmap;

    std::vector<CBitmap*> m_bitmaps;

    void UpdateBitmap();

protected:
    DECLARE_MESSAGE_MAP()
};

#endif
